package com.ysd.service;

import com.ysd.entity.Verification;


public interface VerificationService {
	/**
	 * 通过邮箱获取用户重置密码的验证码
	 * @param email
	 * @return
	 */
	Verification findUserPasswordCode(String email);
	/**
	 * 添加用户找回密码的验证码
	 * @param verification
	 * @return
	 */
	int saveResetPasswordCode(Verification verification);
	
	/**
	 * 根据邮箱验证码查询
	 * @param verification
	 * @return
	 */
	Verification findEmail(Verification verification);
	
	/**
	 * 根据邮箱验证码修改状态
	 * @param verification
	 * @return
	 */
	int findSta(Verification verification);
}
